package com.itheima.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {

    @Pointcut("execution(void com.itheima.dao.Impl.BookDaoImpl.*())")
    private void pt(){};

    //通知方法
    @Before("pt()")
    public void method() {
        System.out.println(System.currentTimeMillis());
    }
}
